<table class="table">
    <thead>
        <tr>
            <th width="30%"></th>
            <th width="30%"></th>
            <th width="40%"></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <b>用户ID:</b>{$detail['user_id']}
            </td>
            <td>
                <b>手机号:</b>{$detail['phone']}
            </td>
            <td rowspan="4">
                <table style="width:100%; text-align: center;s">
                    <tr>
                        <td width="30%">钱包余额</td>
                        <td width="30%">积分余额</td>
                        <td width="30%">消费订单数</td>
                    </tr>
                    <tr style="font-size:20px;">
                        <td>{$detail['balance']}</td>
                        <td>{$detail['score']}</td>
                        <td>{$detail['order_num']}</td>
                    </tr>
                    <tr>
                        <td> </td>
                        <td> </td>
                        <td> </td>
                    </tr>
                    <tr>
                        <td>累计充值金额</td>
                        <td>累计获取积分</td>
                        <td>消费金额</td>
                    </tr>
                    <tr style="font-size:20px;">
                        <td>{$detail['recharge_sum']}</td>
                        <td>{$detail['scort_sum']}</td>
                        <td>{$detail['consume_sum']}</td>
                    </tr>
                </table>

            </td>
        </tr>
        <tr>
            <td>
                <b>用户昵称:</b>{$detail['nick_name']}
            </td>
            <td>
                <b>微信openid:</b>{$detail['wx_openid']}
            </td>
        </tr>
        <tr>
            <td>
                <b>所在城市:</b>
            </td>
            <td>
                <b>所在小区:</b>
            </td>
        </tr>
        <tr>
            <td>
                <b>注册时间：</b>{$detail['createtime']}
            </td>
            <td>
            </td>
        </tr>
    </tbody>
</table>

<ul class="nav nav-tabs">
    <li class="active"><a href="#first" data-toggle="tab">余额明细</a></li>
    <li><a href="#second" data-toggle="tab">积分明细</a></li>
    <li><a href="#third" data-toggle="tab">订单明细</a></li>
    <li><a href="#four" data-toggle="tab">消费商品</a></li>
</ul>
<div style="background:#fff;">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="first">
                <div class="widget-body no-padding">
                    <div id="toolbar1" class="toolbar">
                        <a href="javascript:;" class="btn btn-success btn-setwallet" title="调整钱包金额"><i class="fa"></i>调整钱包金额</a>
                    </div>
                    <table id="table1" class="table table-striped table-bordered table-hover" width="100%" wallet_id="{$detail.wallet_id}">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="second">
                <div class="widget-body no-padding">
                    <div id="toolbar2" class="toolbar">
                        <a href="javascript:;" class="btn btn-success btn-setscore" title="调整积分余额"><i class="fa"></i>调整积分余额</a>
                    </div>
                    <table id="table2" class="table table-striped table-bordered table-hover" width="100%" user_id="{$detail.user_id}">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="third">
                <div class="widget-body no-padding">
                    <div id="toolbar3" class="toolbar">
                    </div>
                    <table id="table3" class="table table-striped table-bordered table-hover table-nowrap" width="100%" user_id="{$detail.user_id}">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="four">
                <div class="widget-body no-padding">
                    <div id="toolbar4" class="toolbar">
                    </div>
                    <table id="table4" class="table table-striped table-bordered table-hover table-nowrap" width="100%" user_id="{$detail.user_id}">
                    </table>
                </div>
            </div>
        </div>
    </div>
    <script type="text/html" id="setwallet-user">
        <div style="margin-top: 20px;">
            <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('users/updateWallet')}">
                <input name="wallet_id" type="hidden" value="{$detail['wallet_id']}">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('调整金额')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <input id="c-refusal_reason" data-rule="required" class="form-control" name="price" type="text" value="">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
                    <div class="col-xs-12 col-sm-8">
                        <textarea id="c-task_desc" data-rule="required" class="form-control " rows="5" name="remark" cols="50"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('调整方式')}:</label>
                    <div class="col-xs-12 col-sm-8 js-check">
                        增加：<input type="radio" name="type" value="0"  checked>&nbsp; &nbsp;
                        减少：<input type="radio" name="type" value="1">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success">{:__('提交')}</button>
                    </div>
                </div>
            </form>
        </div>
    </script>

    <script type="text/html" id="setscore-user">
    <div style="margin-top: 20px;">
        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('users/updateScore')}">
            <input name="user_id" type="hidden" value="{$detail['user_id']}">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('调整数量')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-refusal_reason" data-rule="required" class="form-control" name="num" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-task_desc" data-rule="required" class="form-control " rows="5" name="remark" cols="50"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('调整方式')}:</label>
                <div class="col-xs-12 col-sm-8 js-check">
                    增加：<input type="radio" name="type" value="0"  checked>&nbsp; &nbsp;
                    减少：<input type="radio" name="type" value="1">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success">{:__('提交')}</button>
                </div>
            </div>
        </form>
    </div>
</script>